<div style="padding:30px; background: #fff;min-height: 100%;">
    <form class="form-horizontal" role="form" name="myForm">
        <div class="form-body">
            <div class="row">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2">用户属性：</span>
                        <div class="col-md-3">
                            <div class="triangle">
                                <select class="form-control"  ng-model="condition.userType"  ng-change="getInfo()">
                                    <option value="" selected hidden disabled>请选择</option>
                                    <option  value="0">普通用户</option>
                                    <option  value="1">客户经理</option>
                                    <option  value="2">员工</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>

            <div class="row">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2">提成设置：</span>
                        <div class="col-md-6">
                            <span class="control-label col-md-5">层级一，年化返利 (%)</span>
                            <div class="col-md-3">
                                <input type="number" class="form-control" ng-model="condition.commissionRate1">
                                <input type="hidden" class="form-control" ng-model="condition.id1">
                                <div class="error" ng-show="condition.commissionRate1>10">
                                    超过最大限制
                                </div>
                                <div class="error" ng-show="condition.commissionRate1<0">
                                    输入不合理
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>
            <div class="row">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2"></span>
                        <div class="col-md-6">
                            <span class="control-label col-md-5">层级二，年化返利 (%)</span>
                            <div class="col-md-3">
                                <input type="number" class="form-control" ng-model="condition.commissionRate2">
                                <input type="hidden" class="form-control" ng-model="condition.id2">
                                <div class="error" ng-show="condition.commissionRate2>10">
                                    超过最大限制
                                </div>
                                <div class="error" ng-show="condition.commissionRate2<0">
                                    输入不合理
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>
            <div class="row">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2"></span>
                        <div class="col-md-6">
                            <span class="control-label col-md-5">层级三，年化返利 (%)</span>
                            <div class="col-md-3">
                                <input type="number" class="form-control" ng-model="condition.commissionRate3">
                                <input type="hidden" class="form-control" ng-model="condition.id3">
                                <div class="error" ng-show="condition.commissionRate3>10">
                                    超过最大限制
                                </div>
                                <div class="error" ng-show="condition.commissionRate3<0">
                                    输入不合理
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>
            <div class="row">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2"></span>
                        <div class="col-md-6">
                            <span class="control-label col-md-5">本人投资，年化返利 (%)</span>
                            <div class="col-md-3">
                                <input type="number" class="form-control" ng-model="condition.commissionRate0">
                                <input type="hidden" class="form-control" ng-model="condition.id0">
                                <div class="error" ng-show="condition.commissionRate0>10">
                                    超过最大限制
                                </div>
                                <div class="error" ng-show="condition.commissionRate0<0">
                                    输入不合理
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>

            <div class="row">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2">发放时间：</span>
                        <div class="col-md-8">
                            <label class="radio-inline">
                                <input type="radio" name="time"  value='2' ng-model="condition.giveType">
                                定时发放 </label>
                            <label class="radio-inline">
                                <input type="radio" name="time"  value='1' ng-model="condition.giveType">
                                立即发放 </label>
                        </div>

                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>
            <div class="row" ng-if="condition.giveType==2">

                <div class="col-md-10">
                    <div class="form-group">
                        <span class="control-label col-md-2">每月发送日期（天）：</span>
                        <div class="col-md-8">
                            <div class="form-group">
                                <div class="col-md-5">
                                    <input type="text" class="form-control" ng-model="condition.giveDay" ng-maxlength="31" ng-minlength="1" placeholder="请输入1-31号之间的任意一天">
                                    <div class="error" ng-show="condition.giveDay>31 || condition.giveDay<=0">
                                        输入不合理
                                    </div>
                                </div>

                            </div>
                        </div>

                    </div>
                </div>
                <div class="col-md-2"></div>
            </div>

            <div class="row" style="text-align: right">
                <div class="col-md-1"></div>
                <div class="col-md-5" >
                    <button type="submit" class="btn blue"  ng-click = "upDate()">确定修改</button>
                </div>
                <div class="col-md-3"></div>
            </div>

        </div>
    </form>
</div>
